/**
 * Created by xjweng on 2017/1/15.
 */
console.log(phonecatApp);
phonecatApp.config(['$locationProvider','$routeProvider',
    function($locationProvider,$routeProvider) {
        $locationProvider.hashPrefix('!');
        $routeProvider.
            when('/phones',{
                template:'<phone-list></phone-list>'
        }).
            when('/phones/:phoneId',{
                template:'<phone-detail></phone-detail>'
        }).
            otherwise('/phones');
    }
]);